<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: syslog4cj.Syslog Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesyslog4cj.html">syslog4cj</a></li><li class="navelem"><a class="el" href="classsyslog4cj_1_1Syslog.html">Syslog</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classsyslog4cj_1_1Syslog-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">syslog4cj.Syslog Class Reference</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac14a28f592e2ace7aadde71b8f559d48"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1Syslog.html#ac14a28f592e2ace7aadde71b8f559d48">setSuppressRuntimeExceptions</a> (Bool suppress)</td></tr>
<tr class="separator:ac14a28f592e2ace7aadde71b8f559d48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b3efb6341d4447164245dad37343b90"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1Syslog.html#a5b3efb6341d4447164245dad37343b90">getSuppressRuntimeExceptions</a> ()</td></tr>
<tr class="separator:a5b3efb6341d4447164245dad37343b90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac364d29a37a980479fa27e5137bccca9"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1Syslog.html#ac364d29a37a980479fa27e5137bccca9">initialize</a> ():Unit</td></tr>
<tr class="separator:ac364d29a37a980479fa27e5137bccca9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ddc81c51a721df3b8904664f3a3e8f9"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1Syslog.html#a1ddc81c51a721df3b8904664f3a3e8f9">getInstance</a> (String protocol):?<a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogIF.html">SyslogIF</a></td></tr>
<tr class="separator:a1ddc81c51a721df3b8904664f3a3e8f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cddb9f4c56f5d9428ce1c2d34fb5340"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1Syslog.html#a6cddb9f4c56f5d9428ce1c2d34fb5340">createInstance</a> (String protocol, <a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogConfigIF.html">SyslogConfigIF</a> config):?<a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogIF.html">SyslogIF</a></td></tr>
<tr class="separator:a6cddb9f4c56f5d9428ce1c2d34fb5340"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e61ee2f1f86799da924cb282c6fffa0"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1Syslog.html#a8e61ee2f1f86799da924cb282c6fffa0">exists</a> (String protocol)</td></tr>
<tr class="separator:a8e61ee2f1f86799da924cb282c6fffa0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20eac01294f2b2a0ff825d0b5b8b6e52"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1Syslog.html#a20eac01294f2b2a0ff825d0b5b8b6e52">shutdown</a> ()</td></tr>
<tr class="separator:a20eac01294f2b2a0ff825d0b5b8b6e52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0894bac52de4dfbb3b5bc4bb9efdcdec"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1Syslog.html#a0894bac52de4dfbb3b5bc4bb9efdcdec">destroyInstance</a> (String protocol)</td></tr>
<tr class="separator:a0894bac52de4dfbb3b5bc4bb9efdcdec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2c78e152c0991808e28da091c8e1bd9"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1Syslog.html#ab2c78e152c0991808e28da091c8e1bd9">destroyInstance</a> (<a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogIF.html">SyslogIF</a> syslog)</td></tr>
<tr class="separator:ab2c78e152c0991808e28da091c8e1bd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>提供单例的Syslog客户端实现 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a6cddb9f4c56f5d9428ce1c2d34fb5340" name="a6cddb9f4c56f5d9428ce1c2d34fb5340"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cddb9f4c56f5d9428ce1c2d34fb5340">&#9670;&#160;</a></span>createInstance()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.Syslog.createInstance </td>
          <td>(</td>
          <td class="paramname"><em>protocol</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>config</em>:&#160;</td>
          <td class="paramtype">SyslogConfigIF&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>: ?<a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogIF.html">SyslogIF</a> </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建指定协议的Syslog实例 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">protocol</td><td>协议名称 </td></tr>
    <tr><td class="paramname">config</td><td>配置对象 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>创建的Syslog实例 </dd></dl>

</div>
</div>
<a id="a0894bac52de4dfbb3b5bc4bb9efdcdec" name="a0894bac52de4dfbb3b5bc4bb9efdcdec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0894bac52de4dfbb3b5bc4bb9efdcdec">&#9670;&#160;</a></span>destroyInstance() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.Syslog.destroyInstance </td>
          <td>(</td>
          <td class="paramname"><em>protocol</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>销毁指定协议的Syslog实例 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">protocol</td><td>协议名称 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab2c78e152c0991808e28da091c8e1bd9" name="ab2c78e152c0991808e28da091c8e1bd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2c78e152c0991808e28da091c8e1bd9">&#9670;&#160;</a></span>destroyInstance() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.Syslog.destroyInstance </td>
          <td>(</td>
          <td class="paramname"><em>syslog</em>:&#160;</td>
          <td class="paramtype">SyslogIF</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>销毁指定的Syslog实例 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">syslog</td><td>Syslog实例 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8e61ee2f1f86799da924cb282c6fffa0" name="a8e61ee2f1f86799da924cb282c6fffa0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e61ee2f1f86799da924cb282c6fffa0">&#9670;&#160;</a></span>exists()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.Syslog.exists </td>
          <td>(</td>
          <td class="paramname"><em>protocol</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>检查指定协议的Syslog实例是否存在 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">protocol</td><td>协议名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>是否存在 </dd></dl>

</div>
</div>
<a id="a1ddc81c51a721df3b8904664f3a3e8f9" name="a1ddc81c51a721df3b8904664f3a3e8f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ddc81c51a721df3b8904664f3a3e8f9">&#9670;&#160;</a></span>getInstance()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.Syslog.getInstance </td>
          <td>(</td>
          <td class="paramname"><em>protocol</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: ?<a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogIF.html">SyslogIF</a> </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取指定协议的Syslog实例 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">protocol</td><td>协议名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>对应的Syslog实例 </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">SyslogRuntimeException</td><td>如果实例不存在 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5b3efb6341d4447164245dad37343b90" name="a5b3efb6341d4447164245dad37343b90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b3efb6341d4447164245dad37343b90">&#9670;&#160;</a></span>getSuppressRuntimeExceptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.Syslog.getSuppressRuntimeExceptions </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>是否抑制在该类的许多方法中抛出SyslogRuntimeException。 </dd></dl>

</div>
</div>
<a id="ac364d29a37a980479fa27e5137bccca9" name="ac364d29a37a980479fa27e5137bccca9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac364d29a37a980479fa27e5137bccca9">&#9670;&#160;</a></span>initialize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.Syslog.initialize </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Unit </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>初始化Syslog实例 </p>

</div>
</div>
<a id="ac14a28f592e2ace7aadde71b8f559d48" name="ac14a28f592e2ace7aadde71b8f559d48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac14a28f592e2ace7aadde71b8f559d48">&#9670;&#160;</a></span>setSuppressRuntimeExceptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.Syslog.setSuppressRuntimeExceptions </td>
          <td>(</td>
          <td class="paramname"><em>suppress</em>:&#160;</td>
          <td class="paramtype">Bool</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">suppress</td><td>true表示禁止在此类的许多方法中抛出SyslogRuntimeException异常，false表示抛出异常（默认） </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a20eac01294f2b2a0ff825d0b5b8b6e52" name="a20eac01294f2b2a0ff825d0b5b8b6e52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20eac01294f2b2a0ff825d0b5b8b6e52">&#9670;&#160;</a></span>shutdown()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.Syslog.shutdown </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>关闭所有Syslog实例 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/<a class="el" href="syslog_8cj.html">syslog.cj</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6
</small></address>
</body>
</html>
